﻿<Window x:Class="CodeAngel.UI.NewDomainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:CodeAngel.UI"
        Title="New Domain" SizeToContent="WidthAndHeight" 
        WindowStartupLocation="CenterOwner" WindowStyle="ToolWindow"
        FocusManager.FocusedElement="{Binding ElementName=NameTextBox}">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <local:LabeledTextBox x:Name="NameTextBox" Label="Name" Margin="6" MinWidth="210"/>

        <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right" Margin="6">
            <Button Content="Create Domain" Click="CreateDomainHandler" IsDefault="True"/>
            <Button Content="Cancel" Margin="6,0,0,0" Click="CancelHandler" IsCancel="True"/>
        </StackPanel>

    </Grid>
    
</Window>
